<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">时间类型：</div>
			   <div class="col-sm-8 col-md-8 form-input">
			      <select name="punchType" class="form-control" ng-model="editModel.punchType" required>
               		<option value="0" selected = "selected">弹性时间</option>
               		<option value="1">固定时间</option>
                  </select>
			   </div>
		   </div>
		 
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">
				<span style="color:red;">*</span>考勤类型：
			</div>
			<div class="col-sm-8 col-md-8 form-input"
				 ng-class="{ 'has-error' : editForm.punchTimeName.$dirty && editForm.punchTimeName.$invalid}">
			 	<input name="punchTimeName"  
			 		class="form-control" 
			 		ng-model="editModel.punchTime.punchTimeName"
			 		required>
			</div>
		</div>
		
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>签到时间：</div>
			<div class="col-sm-3 col-md-3 form-input">
			  	<div class="input-group" ng-class="{ 'has-error' : editForm.startFromTime.$dirty && editForm.startFromTime.$invalid}">
					<input id="pStartFromTime" 
						   name="startFromTime" 
				 		   class="form-control" 
				 		   ng-model="editModel.punchTime.startFromTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
				 		   ng-model='timepickerTest' 
				 		   ng-time
				 		   required>  
				</div>	   	   
			</div>
			<div class="col-sm-1 col-md-1 form-title" ng-hide="editModel.punchType==1" style="width:131px;">
				<center>至</center>
			</div>
			
			<div class="col-sm-3 col-md-3 form-input" ng-hide="editModel.punchType==1">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm.startToTime.$dirty && editForm.startToTime.$invalid}">
					<input id="pStartToTime" 
						   name="startToTime" 
				 		   class="form-control" 
				 		   ng-model="editModel.punchTime.startToTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
				 		   required>  
				</div>	   	  	   
			</div>		
		</div>
   
	 <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">
				<span style="color:red;">*</span>截止时间后多久算旷工：
			</div>
			<div class="col-sm-8 col-md-8 form-input"
				 ng-class="{ 'has-error' : editForm.startInterval.$dirty && editForm.startInterval.$invalid}">
			 	<input name="startInterval"  
			 		class="form-control" 
			 		ng-model="editModel.punchTime.startInterval" 
			 		maxLength="2"
			 		ng-pattern="/^([0-9]|[0-5][0-9]|60)$/"
			 		required>
			</div>
		</div>
		
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>签退时间：</div>
			<div class="col-sm-3 col-md-3 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm.endFromTime.$dirty && editForm.endFromTime.$invalid}">
					<input id="pEndFromTime" 
						   name="endFromTime" 
				 		   class="form-control" 
				 		   ng-model="editModel.punchTime.endFromTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
				 		   required>  
				</div>	   	 	
			</div>
			
			<div class="col-sm-1 col-md-1 form-title" ng-hide="editModel.punchType==1" style="width:131px;">
				<center>至</center>
			</div>
			<div class="col-sm-3 col-md-3 form-input" ng-hide="editModel.punchType==1">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm.endToTime.$dirty && editForm.endToTime.$invalid}">
					<input id="pEndToTime" 
						   name="endToTime" 
				 		   class="form-control" 
				 		   ng-model="editModel.punchTime.endToTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
				 		   required>  
				</div>	
			</div>
		</div>
		
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">
				<span style="color:red;">*</span>截止时间前多久算旷工：
			</div>
			<div class="col-sm-8 col-md-8 form-input"
				 ng-class="{ 'has-error' : editForm.endInterval.$dirty && editForm.endInterval.$invalid}">
				<input name="endInterval"  
					class="form-control" 
			 		ng-model="editModel.punchTime.endInterval" 
			 		maxLength="2"
			 		ng-pattern="/^([0-9]|[0-5][0-9]|60)$/"
			 		required>
			</div>
		</div>
		
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">
				<span style="color:red;">*</span>午休时间：
			</div>
			<div class="col-sm-3 col-md-3 form-input"
				ng-class="{ 'has-error' : editForm.restFromTime.$dirty && editForm.restFromTime.$invalid}">
				<input id="pRestFromTime" 
					name="restFromTime"  
					class="form-control" 
			 		ng-model="editModel.punchTime.restFromTime" 
			 		maxLength="5"
			 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
			 		required>
			</div>
			<div class="col-sm-1 col-md-1 form-title" style="width:131px;">
				<center>至</center>
			</div>
			
			<div class="col-sm-3 col-md-3 form-input">
			 	<div class="input-group"
			 		ng-class="{ 'has-error' : editForm.restToTime.$dirty && editForm.restToTime.$invalid}">
					<input id="pRestToTime" 
					name="restToTime"  
					class="form-control" 
			 		ng-model="editModel.punchTime.restToTime" 
			 		maxLength="5"
			 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
			 		required>
				</div>	
			</div>
			
		</div>
		
	</div>	
</form>
